﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ShopInfo.aspx.cs" Inherits="Main_ShopInfo"%>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register src="../top.ascx" tagname="top" tagprefix="uc1" %>
<%@ Register src="../bottom.ascx" tagname="bottom" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title>店面详细</title>
    <link href="../css/header/header.css" rel="stylesheet" type="text/css" />
    <link href="../css/footer/footer.css" rel="stylesheet" type="text/css" />
    <link href="../css/shop/shop.css" rel="stylesheet" type="text/css" /> 
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
    <script type="text/javascript" src="jquery.easing.1.3.js"></script>
    <script type="text/javascript" src="sexylightbox.v2.3.jquery.min.js"></script>
    <link rel="stylesheet" href="sexylightbox.css" type="text/css" media="all" />
  
  <script type="text/javascript">
    $(document).ready(function(){
      SexyLightbox.initialize({color:'white'});
    });
  </script>
    
<script language="javascript" type="text/javascript">
function btnback_onclick() {
 window.history.go(-1);
}
</script>
</head>
<body>
    <form id="form1" runat="server">
        <uc1:top ID="top1" runat="server" />
        <div class="main_all">
            <div class="left"> 
                <div class="shop_nav_bg">&nbsp;基本信息</div>
                <div class="position_L"><img src="../css/shop/Pg_r1_c4.png" /></div>
                <div class="shop_base"></div>
                <br>
                <br>
                <table>
                    <tr>
                        <td>
                            店名：</td>
                        <td>
                            <asp:Label ID="labname" runat="server" ForeColor="Red"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            领域：</td>
                        <td>
                            <asp:Label ID="labfield" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            类型：</td>
                        <td>
                            <asp:Label ID="labtype" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            热度：</td>
                        <td>
                            <asp:Rating ID="ThaiRating" runat="server" EmptyStarCssClass="emptyRatingStar" 
                                            FilledStarCssClass="filledRatingStar" 
                                            WaitingStarCssClass="savedRatingStar" 
                                            StarCssClass="ratingStar" 
                                            ReadOnly="True">
                                            </asp:Rating>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            支持数：</td>
                        <td>
                            <asp:Label ID="labup" runat="server" ForeColor="Red" Font-Size="Large"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:ImageButton ID="imgbtnup" runat="server" ImageUrl="~/css/shop/up.jpg" 
                                onclick="imgbtnup_Click" BorderStyle="Outset" BorderWidth="3px" />
                        </td>
                    </tr>
                </table>
            </div> 
            <div class="flashbox">
                 <asp:HiddenField ID="HiddenField1" runat="server" />
                 <script type="text/javascript">
                         var focus_width=590
                         var focus_height=186
                         var text_height=0
                         var swf_height = focus_height+text_height
                         var pics=document.getElementById('HiddenField1').value;
                         var links="";
                         var texts=""
                         document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
                         document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="../images/focus1.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
                         document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
                         document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
                         document.write('</object>');
                  </script>
              </div>
              <div class="rightbox">
              <h1>最新排行</h1>
              <div class="box_text">
                     <asp:GridView ID="gvrank" runat="server" CssClass="rank" AutoGenerateColumns="False">
                                <Columns>
                                    <asp:TemplateField HeaderText="店名">
                                        <ItemTemplate>
                                            <asp:HyperLink ID="hlname" style="text-decoration:none;color:#008B8B;font-weight:bold;" Target="_blank" runat="server" Text='<%# Eval("Sname") %>'></asp:HyperLink>
                                            <asp:HiddenField ID="hfsid" runat="server" Value='<%# Eval("Sid") %>' />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="Sup" HeaderText="支持数"/>
                                </Columns>
                    </asp:GridView>
               </div>
               <h1>更多店面</h1>
               <div class="box_text">
                   <asp:DataList ID="dlshop" runat="server" CssClass="newstexs" RepeatColumns="1" 
                       RepeatDirection="Horizontal">
                       <ItemTemplate>
                           <asp:HiddenField ID="Hiddensid" runat="server" Value='<%# Eval("Sid") %>' />
                           <div class="shops">
                               <asp:HyperLink ID="hlshop" runat="server" Target="_blank">
                               <asp:Image ID="imgbtnshop" runat="server" Height="130px" 
                                   ImageUrl='<%# Eval("Slogo") %>' 
                                   Width="150px" />
                               </asp:HyperLink>
                               <div><asp:Label ID="labSname" runat="server" Text='<%# Eval("Sname") %>'></asp:Label>
                               <br/>类型：<asp:Label ID="labStype" runat="server" Text='<%# Eval("Fname") %>'></asp:Label></div>
                           </div>
                       </ItemTemplate>
                   </asp:DataList>
               </div>
             </div>
             <div class="content"> 
                <div class="shop_nav_bg">&nbsp;优惠信息</div>
                <div class="position_L"><img src="../css/shop/Pg_r1_c4.png" /></div>
                <div class="content_title"></div>
                 <asp:Label ID="labcontent" runat="server" ForeColor="Green"></asp:Label>
             </div>
              <div class="content"> 
                <div class="shop_nav_bg">&nbsp;联系方式</div>
                <div class="position_L"><img src="../css/shop/Pg_r1_c4.png" /></div>
                <div class="content_title"></div>
                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;地址：<asp:Label 
                      ID="labaddress" runat="server" ForeColor="Red"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 电话：<asp:Label ID="labtel" runat="server" ForeColor="Red"></asp:Label></div>
              <div class="content"> 
                <div class="shop_nav_bg">&nbsp;店面介绍</div>
                <div class="position_L"><img src="../css/shop/Pg_r1_c4.png" /></div>
                <div class="content_title"></div>
                 <asp:Label ID="labintroduce" runat="server"></asp:Label>
             </div>
              <div class="content"> 
                <div class="shop_nav_bg">&nbsp;店面图片</div>
                <div class="position_L"><img src="../css/shop/Pg_r1_c4.png" /></div>
                <div class="content_title"></div>
                </br>
                </br>
                <div style="margin:2px 2px; padding:4px 4px 2px 4px; border:1px solid #b8b8b8;float:left;">
                	<div><a href="<%=img1%>" rel="sexylightbox[group1]" title="<%=tit1%>"><img src="<%=img1%>" width="179" height="150"/></a>
            		<a href="<%=img2%>" rel="sexylightbox[group1]" title="<%=tit2%>"><img src="<%=img2%>" width="179" height="150"/></a>
            		<a href="<%=img3%>" rel="sexylightbox[group1]" title="<%=tit3%>"><img src="<%=img3%>" width="179" height="150"/></a>
            		<a href="<%=img4%>" rel="sexylightbox[group1]" title="<%=tit4%>"><img src="<%=img4%>" width="179" height="150"/></a></div>
            		<a href="<%=img5%>" rel="sexylightbox[group1]" title="<%=tit5%>"><img src="<%=img5%>" width="179" height="150"/></a>
            		<a href="<%=img6%>" rel="sexylightbox[group1]" title="<%=tit6%>"><img src="<%=img6%>" width="179" height="150"/></a>
            		<a href="<%=img7%>" rel="sexylightbox[group1]" title="<%=tit7%>"><img src="<%=img7%>" width="179" height="150"/></a>
            		<a href="<%=img8%>" rel="sexylightbox[group1]" title="<%=tit8%>"><img src="<%=img8%>" width="179" height="150"/></a>
            	</div>
             </div>  
             <div class="content_job"> 
                <div class="shop_nav_bg">&nbsp;招聘信息</div>
                <div class="position_L"><img src="../css/shop/Pg_r1_c4.png" /></div>
                <div class="content_title"></div>
                <asp:Label ID="labjob" runat="server"></asp:Label>
             </div>         
              <div class="content"> 
                <div class="shop_nav_bg">&nbsp;网友评论</div>
                <div class="position_L"><img src="../css/shop/Pg_r1_c4.png" /></div>
                <div class="content_title"></div>
                <div class="news_w">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                  <ContentTemplate>
                   <div id="newsmaincen">
                    <asp:DataList ID="dlopinion" runat="server" OnItemCommand="dlopinion_ItemCommand" Width="720px">
                           <ItemTemplate>
                                <div style="border-bottom: #666666 1px dashed; width:720px;">
                                    <div>
                                         <asp:Panel ID="Panel1" runat="server" Width="720px">
                                         <span style="font-size: 14px"></span>
                                         <asp:Label ID="lblID" runat="server" ForeColor="Red" Text='<%# Eval("留言id") %>' Visible="False"></asp:Label>
                                         <asp:Label ID="labuser" runat="server" Text='<%# Eval("留言人") %>' Font-Size="14px" ForeColor="Red"></asp:Label>
                                         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                         <asp:Label ID="lbshijian" runat="server" Text='<%# Eval("留言时间") %>' Font-Size="14px"></asp:Label>
                                             &nbsp;&nbsp;&nbsp;&nbsp;
                                         <asp:LinkButton ID="lbtnshowreply" runat="server"  CssClass="page" CommandName="show">回复</asp:LinkButton>
                                             <asp:LinkButton ID="lbtnhidereply" runat="server" CommandName="hide" 
                                                 CssClass="page" Visible="False">取消</asp:LinkButton>
                                                 <asp:LinkButton ID="lbtndel" runat="server"  CssClass="page" CommandName="delete" Visible="False">删除</asp:LinkButton>
                                                 <br>
                                                 <asp:Label ID="lbl" runat="server" Text='<%# Eval("留言内容") %>' Font-Size="14px" ForeColor="Green"></asp:Label>
                                                    <div style="margin-left:50px;"> 
                                                       <asp:DataList ID="dlreply" runat="server" onitemcommand="dlreply_ItemCommand">
                                                         <ItemTemplate>
                                                             <asp:Label ID="lblID" runat="server" ForeColor="Red" Text='<%# Eval("Rid") %>' 
                                                                 Visible="False"></asp:Label>
                                                             <asp:Label ID="labuser" runat="server" Font-Size="14px" ForeColor="Red" 
                                                                 Text='<%# Eval("Rauthor") %>'></asp:Label>
                                                             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                             <asp:Label ID="lbshijian" runat="server" Font-Size="14px" 
                                                                 Text='<%# Eval("Rtime") %>'></asp:Label>
                                                             <asp:LinkButton ID="lbtndel" runat="server" CommandName="delete" 
                                                                 CssClass="page" Visible="False">删除</asp:LinkButton>
                                                             <br />
                                                             <asp:Label ID="lbl" runat="server" Font-Size="14px" ForeColor="#3366CC" 
                                                                 Text='<%# Eval("Rcontent") %>'></asp:Label>
                                                         </ItemTemplate>
                                                       </asp:DataList>
                                                   </div> 
                                                     <asp:Panel ID="plreply" runat="server" Visible="False">
                                                     <asp:TextBox ID="txtreply" runat="server" Height="50px" TextMode="MultiLine" 
                                                         Width="500px"></asp:TextBox>
                                                         <asp:LinkButton ID="lbtnreply" runat="server"  CssClass="page" CommandName="add">提交</asp:LinkButton>
                                             </asp:Panel>
                                         </asp:Panel>     
                                    </div>        
                                </div>
                             </ItemTemplate>
                         </asp:DataList>
                         <div class="topbottom">
                            <asp:LinkButton ID="lbpre" runat="server" CssClass="page" CommandArgument="pre" OnCommand="IndexChanging">上页</asp:LinkButton><span></span>
                            <asp:LinkButton ID="lbnext" runat="server" CssClass="page" CommandArgument="next" OnCommand="IndexChanging">下页</asp:LinkButton><span></span>
                         </div>                     
                    </div>
                    <div class="news_tp">
                        <h2>发表评论：<span>已有<asp:Label ID="labnumber" runat="server" Font-Size="14px" ForeColor="Orange">0</asp:Label>位用户发表了看法
                              </span></h2>
                        <asp:TextBox ID="txtcontent" CssClass="apptextbox" runat="server" TextMode="MultiLine"
                                    Width="99%" Height="100px"></asp:TextBox>
                        <div class="news_ren">
                            <asp:Label ID="Label1" runat="server" Text="纺织城昵称："></asp:Label>
                            <asp:TextBox ID="txtname" runat="server" CssClass="apptextbox"></asp:TextBox>
                            <asp:Button ID="btntijiao" runat="server" CssClass="btngrey"
                                        Text="提交评论" onclick="btntijiao_Click" />
                        </div>
                    </div>
                    </ContentTemplate> 
                    </asp:UpdatePanel>
                  </div>
             </div>
        </div>
        <uc2:bottom ID="bottom1" runat="server" />
    </form>
</body>
</html>
